package ae.pcfc.etks.online.common.domain;

import static javax.persistence.GenerationType.IDENTITY;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.UniqueConstraint;

/**
 * TTscCountry entity. @author Mohtisham.Salahria
 */
@Entity
@Table(name = "T_TSC_COUNTRY", schema = "TSC_RW", uniqueConstraints = {
		@UniqueConstraint(columnNames = "COUNTRY_NAME_ARB"),
		@UniqueConstraint(columnNames = "COUNTRY_NAME") })
public class TTscCountry implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	// Fields

	private String countryCode;
	private String countryName;
	private String countryNameArb;
	private String countryNationality;
	private String countryNationalityArb;
	private String countryCreateduser;
	private Date countryCreatedtime;
	private String countryModifieduser;
	private Date countryModifiedtime;

	// Constructors

	/** default constructor */
	public TTscCountry() {
	}

	/** full constructor */
	public TTscCountry(String countryName, String countryNameArb,
			String countryNationality, String countryNationalityArb,
			String countryCreateduser, Date countryCreatedtime,
			String countryModifieduser, Date countryModifiedtime) {
		this.countryName = countryName;
		this.countryNameArb = countryNameArb;
		this.countryNationality = countryNationality;
		this.countryNationalityArb = countryNationalityArb;
		this.countryCreateduser = countryCreateduser;
		this.countryCreatedtime = countryCreatedtime;
		this.countryModifieduser = countryModifieduser;
		this.countryModifiedtime = countryModifiedtime;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "COUNTRY_CODE", unique = true, nullable = false, length = 10)
	public String getCountryCode() {
		return this.countryCode;
	}

	public void setCountryCode(String countryCode) {
		this.countryCode = countryCode;
	}

	@Column(name = "COUNTRY_NAME", unique = true, length = 30)
	public String getCountryName() {
		return this.countryName;
	}

	public void setCountryName(String countryName) {
		this.countryName = countryName;
	}

	@Column(name = "COUNTRY_NAME_ARB", unique = true, length = 30)
	public String getCountryNameArb() {
		return this.countryNameArb;
	}

	public void setCountryNameArb(String countryNameArb) {
		this.countryNameArb = countryNameArb;
	}

	@Column(name = "COUNTRY_NATIONALITY", length = 30)
	public String getCountryNationality() {
		return this.countryNationality;
	}

	public void setCountryNationality(String countryNationality) {
		this.countryNationality = countryNationality;
	}

	@Column(name = "COUNTRY_NATIONALITY_ARB", length = 30)
	public String getCountryNationalityArb() {
		return this.countryNationalityArb;
	}

	public void setCountryNationalityArb(String countryNationalityArb) {
		this.countryNationalityArb = countryNationalityArb;
	}

	@Column(name = "COUNTRY_CREATEDUSER", length = 30)
	public String getCountryCreateduser() {
		return this.countryCreateduser;
	}

	public void setCountryCreateduser(String countryCreateduser) {
		this.countryCreateduser = countryCreateduser;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "COUNTRY_CREATEDTIME", length = 7)
	public Date getCountryCreatedtime() {
		return this.countryCreatedtime;
	}

	public void setCountryCreatedtime(Date countryCreatedtime) {
		this.countryCreatedtime = countryCreatedtime;
	}

	@Column(name = "COUNTRY_MODIFIEDUSER", length = 30)
	public String getCountryModifieduser() {
		return this.countryModifieduser;
	}

	public void setCountryModifieduser(String countryModifieduser) {
		this.countryModifieduser = countryModifieduser;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "COUNTRY_MODIFIEDTIME", length = 7)
	public Date getCountryModifiedtime() {
		return this.countryModifiedtime;
	}

	public void setCountryModifiedtime(Date countryModifiedtime) {
		this.countryModifiedtime = countryModifiedtime;
	}

}